/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * PantallaNuevaZona.java
 *
 * Created on 08/06/2011, 09:38:48
 */

package interfacesGraficas;

import javax.swing.JButton;
import javax.swing.JTextField;

/**
 *
 * @author eduardo
 */
public class PantallaNuevaZona extends javax.swing.JFrame {

    /** Creates new form PantallaNuevaZona */
    public PantallaNuevaZona() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {
        java.awt.GridBagConstraints gridBagConstraints;

        panelnuevazona = new javax.swing.JPanel();
        jLabel1 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        campoCodigoZona = new javax.swing.JTextField();
        campoNombreZona = new javax.swing.JTextField();
        barraelementos = new javax.swing.JToolBar();
        botonGuardarZona = new javax.swing.JButton();
        botonSalirZona = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        getContentPane().setLayout(new java.awt.GridBagLayout());

        panelnuevazona.setBorder(javax.swing.BorderFactory.createTitledBorder("Zona"));
        panelnuevazona.setLayout(new java.awt.GridBagLayout());

        jLabel1.setText("Código Zona:");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        gridBagConstraints.insets = new java.awt.Insets(14, 18, 0, 0);
        panelnuevazona.add(jLabel1, gridBagConstraints);

        jLabel2.setText("Nombre Zona:");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 2;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        gridBagConstraints.insets = new java.awt.Insets(24, 18, 0, 0);
        panelnuevazona.add(jLabel2, gridBagConstraints);
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.ipadx = 100;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        gridBagConstraints.insets = new java.awt.Insets(10, 10, 0, 22);
        panelnuevazona.add(campoCodigoZona, gridBagConstraints);
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 2;
        gridBagConstraints.ipadx = 100;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        gridBagConstraints.insets = new java.awt.Insets(20, 10, 50, 82);
        panelnuevazona.add(campoNombreZona, gridBagConstraints);

        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 1;
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
        gridBagConstraints.ipadx = 1;
        gridBagConstraints.insets = new java.awt.Insets(10, 10, 10, 0);
        getContentPane().add(panelnuevazona, gridBagConstraints);

        barraelementos.setRollover(true);

        botonGuardarZona.setIcon(new javax.swing.ImageIcon(getClass().getResource("/utilidades/imagenes/iconos/Save_30.png"))); // NOI18N
        botonGuardarZona.setToolTipText("Nueva Zona");
        botonGuardarZona.setFocusable(false);
        botonGuardarZona.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        botonGuardarZona.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        barraelementos.add(botonGuardarZona);

        botonSalirZona.setIcon(new javax.swing.ImageIcon(getClass().getResource("/utilidades/imagenes/iconos/Log-out-30.png"))); // NOI18N
        botonSalirZona.setToolTipText("Salir");
        botonSalirZona.setFocusable(false);
        botonSalirZona.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        botonSalirZona.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        barraelementos.add(botonSalirZona);

        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.gridwidth = 2;
        gridBagConstraints.ipadx = 300;
        gridBagConstraints.ipady = 4;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        gridBagConstraints.insets = new java.awt.Insets(0, 0, 15, 0);
        getContentPane().add(barraelementos, gridBagConstraints);

        pack();
    }// </editor-fold>//GEN-END:initComponents

    /**
    * @param args the command line arguments
    */
   /* public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new PantallaNuevaZona().setVisible(true);
            }
        });
    }*/

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JToolBar barraelementos;
    private javax.swing.JButton botonGuardarZona;
    private javax.swing.JButton botonSalirZona;
    private javax.swing.JTextField campoCodigoZona;
    private javax.swing.JTextField campoNombreZona;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JPanel panelnuevazona;
    // End of variables declaration//GEN-END:variables

    public JButton getBotonGuardarZona() {
        return botonGuardarZona;
    }

    public void setBotonGuardarZona(JButton botonGuardarZona) {
        this.botonGuardarZona = botonGuardarZona;
    }

    public JButton getBotonSalirZona() {
        return botonSalirZona;
    }

    public void setBotonSalirZona(JButton botonSalirZona) {
        this.botonSalirZona = botonSalirZona;
    }

    public JTextField getCampoCodigoZona() {
        return campoCodigoZona;
    }

    public void setCampoCodigoZona(JTextField campoCodigoZona) {
        this.campoCodigoZona = campoCodigoZona;
    }

    public JTextField getCampoNombreZona() {
        return campoNombreZona;
    }

    public void setCampoNombreZona(JTextField campoNombreZona) {
        this.campoNombreZona = campoNombreZona;
    }

    

}
